package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * APP文章作者信息表
 * </p>
 *
 * @author kzj
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ApAuthor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 作者名称
     */
    private String name;

    /**
     * 0 爬取数据	            1 签约合作商	            2 平台自媒体人	            
     */
    private Short type;

    /**
     * 社交账号ID
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 自媒体账号
     */
    private Integer wmUserId;
    public enum Type{
        CRAWL_DATA((short)0),
        CONTRACT_PARTNER((short)1),
        PLATFORM_MEDIA((short)2)
        ;
        private Short value;
        Type(Short value)
        {
            this.value=value;
        }
        public Short getValue(){
            return this.value;
        }
    }


}
